package com.eobard.utils;

import cn.hutool.core.collection.CollectionUtil;

import java.util.List;
import java.util.Map;

/**
 * @Author: Eobard Gu
 * @Date: 2025-08-04
 * @Description: 集合工具类
 */
public class CollectionUtils {
    public static void clear(List<?>... lists) {
        for (List<?> list : lists) {
            if (CollectionUtil.isNotEmpty(list)) {
                list.clear();
            }
        }
    }

    public static void clear(Map... maps) {
        for (Map map : maps) {
            if (map != null) {
                map.clear();
            }
        }
    }
}
